package cn.sh.system.domain;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import cn.sh.basic.domain.BaseDomain;
import cn.sh.org.domain.Department;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

/**
 * <p>
 * 
 * </p>
 *
 * @author sh
 * @since 2022-08-14
 */
@Data
public class Menu extends BaseDomain{

    private static final long serialVersionUID = 1L;

    private String name;
    private String component;
    private String url;
    private String icon;
    private Integer index;
    private Long parentId;
    private String intro;
    private Integer state;

    private Menu parent;
    /*自己的子部门*/
    @JsonInclude(JsonInclude.Include.NON_EMPTY)/*如果集合为空 就不转化成json字符串返给前端*/
    private List<Menu> children = new ArrayList<>();

}
